<%@page import="pro.syj.dao.CourseDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>课程修改操作</title>
	<link rel='stylesheet' href='CSS/decorator1.css'>
</head>

<body>
	<%
	    String cid = request.getParameter("cid");
	    String percent1 = request.getParameter("percent1");
	    String percent2 = request.getParameter("percent2");
	    CourseDao coursedao = new CourseDao();
	    int flag = coursedao.updateCourse(cid, Double.parseDouble(percent1), Double.parseDouble(percent2));
		if(flag == 1){
			response.sendRedirect("managerQcourse.jsp");
		}else{
			response.sendRedirect("error.jsp");
		}
	%>
</body>
</html>